﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SMapArea extends Object
    {
        public var areaId:int;
        public var mapId:int;
        public var point:SPoint;
        public var name:String;
        public var plans:Array;

        public function SMapArea()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.areaId);
            param1.writeInt(this.mapId);
            this.point.__write(param1);
            param1.writeString(this.name);
            SeqIntHelper.write(param1, this.plans);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.areaId = param1.readInt();
            this.mapId = param1.readInt();
            this.point = new SPoint();
            this.point.__read(param1);
            this.name = param1.readString();
            this.plans = SeqIntHelper.read(param1);
            return;
        }// end function

    }
}
